home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / • Extras • / SGI STL / README.VC++ < prev    next >
Text File  |  1997-05-28  |  2KB  |  55 lines

  1. Note For Visual C++ Users
  2.  
  3. ----------------------------------------------------------------------------
  4.  
  5. Known problems
  6.  
  7. Compiling
  8.  
  9.    * ./config directory contains stlcomp.h.vcxx files prepared for use with
  10.      Visual C++ 4.x or 5.0. Just replace stlcomp.h with the one matching
  11.      your VC++ version.
  12.    * __STL_USE_EXCEPTIONS is being defined automatically if the compiler
  13.      defined _CPPUNWIND macro ("/GX" option). So you should not worry about
  14.      it.
  15.    * There were reports that Visual C++ 4.0 have problems with namespaces in
  16.      certain cases. If you ran into these problems, #define
  17.      __STL_NO_NAMESPACES in stlcomp.h.
  18.    * You may encounter problems with too long symbols when compiling with
  19.      debug information. To handle this, try defining __STL_USE_ABBREVS in
  20.      stlcomp.h.
  21.    * You may experience problems with default SGI node allocator. I had no
  22.      such problems, though. Default node allocator is quite fast, so
  23.      I wouldn't recommend disabling it without serious reason. However, if
  24.      it causes problems, define __STL_USE_MALLOC or __STL_USE_NEWALLOC to
  25.      get bare malloc()-based or new()-based default allocator.
  26.    * This version defines __STL_WIN32THREADS switch automatically if the
  27.      internal VC++ macro _MT is set. If your program is actually not
  28.      multi-threaded, you might want to define _NTHREADS macro to avoid
  29.      synchronization overhead (and still using SGI node allocator. If you
  30.      wish to disable it completely, refer to previous note). Defining
  31.      _NTHREADS could also save you lots of compilation time since
  32.      <windows.h> is not being included then.
  33.    * You may still encounter problems using new-style VC++ 5.0 headers like
  34.      <iostream> in mix with SGI STL. Hopefully these problems will be fixed
  35.      in next adaptation. Apparently there are conflicts with VC++ <xstring>
  36.      and char_traits<> defined somewhere in (STL?) headers. Solutions
  37.      appreciated.
  38.  
  39. ----------------------------------------------------------------------------
  40.  
  41. Migration notes
  42.  
  43. You should experience no other problems migrating from VC++ STL to SGI STL.
  44. Default allocator<T> in this adaptation should be fully functional.
  45.  
  46. ----------------------------------------------------------------------------
  47.  
  48. Versions prior to 4.0
  49.  
  50. Visual C++ older than 4.0 won't compile STL. You have to upgrade.
  51.  
  52. ----------------------------------------------------------------------------
  53.  
  54. Last updated : May 25, 1997.
  55.